package DataStructures.栈.逆波兰计算器;

import java.util.ArrayList;
import java.util.List;
import java.util.Stack;

/**
 * @Author: yqy
 * @Date: 2022/06/07/20:03
 * @Description:
 */
public class PolandNotation {
    public static void main(String[] args) {
        String s=new String("3 4 + 5 x 6 -");
        String[] split = s.split(" ");
        List<String> list=new ArrayList<>();
        for (int i = 0; i < split.length; i++) {
            list.add(split[i]);
        }
        Stack<String> stack=new Stack<>();
        for (int i = list.size()-1; i >=0; i--) {
            String s1 = list.get(i);
            stack.push(s1);
        }
        int i=0;
        while (i<stack.size()){
           //todo
            i++;
        }
    }
}
